package com.yueya.common.util;

import java.util.UUID;

/**
 * 
 * 
 * @author yangfeng
 */
public class UUIDGenerator {
	/**
	 * 
	 * 
	 * @return
	 */
	public static String getUUID() {
		String uuid = UUID.randomUUID().toString();
		StringBuilder sb = new StringBuilder(32);
		sb.append(uuid.substring(0, 8));
		sb.append(uuid.substring(14, 18));
		sb.append(uuid.substring(19, 23));
		sb.append(uuid.substring(24));
		return sb.toString();
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		System.out.println(getUUID());

	}

}